﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpShare.Storage {
    public interface IStorageLookup : IEnumerable<IStorageItem> {
        /// <summary>
        /// Gets the expected number of items available.
        /// </summary>
        /// <remarks>
        /// This count is approximate. The object may enumerate more or less items than this.
        /// </remarks>
        int Count { get; }

        /// <summary>
        /// Gets a storage item by name in this lookup.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns>A storage item, or null if not found.</returns>
        IStorageItem this[string name] { get; }
    }
}
